package com.egoo.ticket.server.pojo.entity;

import com.egoo.ticket.server.pojo.vo.WorkOrderFieldReflectVo;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Administrator
 */
@Data
@Accessors(chain = true)
public class WorkOrderFieldReflect {

	private Integer id;
//	工单字段映射*****

	/**
	 * /  外部工单Id
	 */
	private String externalWorkOrderId;
	/**
	 * /	工单类型Id
	 */
	private String workOrderTypeId;
	/**
	 * /	工单类型节点Id
	 */
	private String workOrderTypeNodeId;
	/**
	 * /	工单模板Id
	 */
	private String formTemplateId;
	/**
	 * /	内部字段name
	 */
	private String innerFieldName;
	/**
	 * /	内部字段解释
	 */
	private String innerFieldMeaning;
	/**
	 * /	外部字段名
	 */
	private String externalFieldName;
	/**
	 * /	外部字段默认值
	 */
	private String externalFieldValue;

	/**
	 * 租户id
	 */
	private String tenantId;

	public WorkOrderFieldReflect(){

	}
	public WorkOrderFieldReflect(String innerFieldName, String innerFieldMeaning, String externalFieldName, String externalFieldValue) {
		this.innerFieldName = innerFieldName;
		this.innerFieldMeaning = innerFieldMeaning;
		this.externalFieldName = externalFieldName;
		this.externalFieldValue = externalFieldValue;
	}
	public static WorkOrderFieldReflectVo getWorkOrderFieldReflect(String innerFieldName, String innerFieldMeaning, String externalFieldName, String externalFieldValue) {
		return new WorkOrderFieldReflectVo(innerFieldName, innerFieldMeaning, externalFieldName, externalFieldValue);
	}
}
